package com.tiennt.android.callnotes.models.viewholders;

import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.tiennt.android.callnotes.R;

public class ListNotesItemViewHolder {
	private View base;
	// private Ch
	private CheckBox chbxSelect;
	private ImageView imgvContactPhoto;
	private TextView tvContactName;
	private TextView tvNoteTitle;
	private CheckBox chbxIn;
	private CheckBox chbxOut;
	private LinearLayout linearContact;
	private RelativeLayout relativeNote;

	public LinearLayout getLinearContact() {
		if (linearContact == null) {
			linearContact = (LinearLayout) base
					.findViewById(R.id.linearContact);
		}
		return linearContact;
	}

	public RelativeLayout getRelativeNote() {
		if (relativeNote == null) {
			relativeNote = (RelativeLayout) base
					.findViewById(R.id.relativeNote);
		}
		return relativeNote;
	}

	

	public ListNotesItemViewHolder(View base) {
		this.base = base;
	}

	public CheckBox getChbxSelect() {
		if (chbxSelect == null) {
			chbxSelect = (CheckBox) base.findViewById(R.id.chbxSelectToDel);
		}
		return chbxSelect;
	}

	public ImageView getImgvContactPhoto() {
		if (imgvContactPhoto == null) {
			imgvContactPhoto = (ImageView) base
					.findViewById(R.id.imgvContactImage);
		}
		return imgvContactPhoto;
	}

	public TextView getTvContactName() {
		if (tvContactName == null) {
			tvContactName = (TextView) base.findViewById(R.id.tvContactName);
		}
		return tvContactName;
	}

	public TextView getTvNoteTitle() {
		if (tvNoteTitle == null) {
			tvNoteTitle = (TextView) base.findViewById(R.id.tvNoteTitle);
		}
		return tvNoteTitle;
	}

	public CheckBox getChbxIn() {
		if (chbxIn == null) {
			chbxIn = (CheckBox) base.findViewById(R.id.chbxIncomming_viewnotes);
		}
		return chbxIn;
	}

	public CheckBox getChbxOut() {
		if (chbxOut == null) {
			chbxOut = (CheckBox) base.findViewById(R.id.chbxOutgoing_viewnotes);
		}
		return chbxOut;
	}

}
